package Lesson18;

public class AbstractionDemo {

	public static void main(String[] args) 
	{
		Car car = new Car();
		car.switchLights(false);
		
		//Movable car1 = new Car();
		//car1.move("left");
		
		Human human = new Human();
		human.breathe();
		human.makeNoise();
		
		Mammal mammal = new Human();
		mammal.breathe();
		mammal.makeNoise();
		
		Mammal cat = new Cat();
		cat.breathe();
		cat.makeNoise();
		
		Zoo zoo = new Zoo();
		zoo.mammals[0] = new Human();
		zoo.mammals[1] = new Cat();
		zoo.mammals[2] = new Dog();
		
		zoo.makeAllAnimalsNoisy();
	}

}
